﻿
@if (!Model.Projects.Any())
{
    <div class="alert alert-warning">
        There is'nt any project yet. 
        <a  @onclick="@(()=>ShowAddProjectModal())" class="text-primary">add new project</a>
    </div>
}

@code {
    [Parameter]
    public OrganizationDetailsViewModel Model { get; set; }


    
    /// <summary>
    ///
    /// </summary>
    private void ShowAddProjectModal( )
    {
        var parameters = new ModalParameters();
        parameters.Add(nameof(Pages.Projects.Components.AddProject.OrganizationId), Model.Organization.Id);
        ModalService.Show<Pages.Projects.Components.AddProject>("Add Project", parameters, new ModalOptions {});
    }

}
